'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	//event为客户端上传的参数
	// console.log('event : ', event)
	
	//返回数据给客户端
	const data = await db.collection('user-table').where({uid: event.uid}).get();
	// console.log(data);
	data.data = data.data[0];
	return data
};
